package com.meilingcloud.activiti.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 动态表单 对象 act_wf_formdata
 *
 * @author chenl
 * @date 2021-01-28
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("act_wf_formdata")
public class ActWfFormData implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 事务key
     */
    private String businessKey;

    /**
     * 表单key
     */
    private String formKey;

    /**
     * 表单值
     */
    private String formData;

    /**
     * 表单属性定义
     */
    private String formDesc;

    /**
     * 任务节点名称
     */
    private String taskNodeName;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();

}
